.carts-all {
  position: absolute;
  width: 300px;
  height: 500px;
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
  overflow: hidden;
  transition: all 1s;
  border: 1px solid #8f8f8f;
  z-index: 20;
}


/* 头部 */
.leave-top {
  height: 40px;
  background-color: rgba(92, 167, 186, 1);
  overflow: hidden;
}

.leave-top div {
  float: left;
  width: 60px;
  height: 40px;
  line-height: 40px;
  padding-left: 12px;
  color: #fff;
}

.leave-top span {
  float: right;
  width: 45px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  display: block;
  color: #000;
}

.leave-top span:hover {
  background-color: rgb(87, 96, 105);
}


/* 主体 */
.carts-content {
  height: 460px;
  background-color: #fff;
  overflow: hidden;
  overflow-y: auto;
}

.carts-content::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 2px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 2px;
}

.carts-content::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.carts-content::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.1);
}

.carts-content>h5 {
  height: 40px;
  line-height: 40px;
  padding-left: 10px;
  border-bottom: 1px solid #ccc;
  background-color: #f0f0f0;
}

.carts-cart {
  width: 80px;
  height: 80px;
  border: 1px solid #f0f0f0;
  display: inline-block;
  margin: 9px;
  position: relative;
  transform: scale(0.9);

}


.numSpan {
  position: absolute;
  background-color: lightgray;
  right: -10px;
  top: -10px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  padding: 3px 5px;
  text-align: center;
  line-height: 12px;
}

.carts-img {
  width: 45px;
  height: 40px;
  border: 1px solid #f0f0f0;
  margin: auto;
  margin-top: 10px;
}

.carts-img>img {
  width: 100%;
  height: 100%;
}

.carts-words {
  margin-top: 5px;
  height: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
}
